<?php

namespace app\api\model;

use think\Model;

class DonateApply extends Model
{
    protected $autoWriteTimestamp = true;
    protected $table = 'donate_apply';

    public function getStatusAttr($value){
        $status = [
            '3'     =>  '未审核',
            '1'     =>  '已审核',
            '2'     =>  '未通过',
        ];
        return $status[$value];
    }
    public function PassUser(){
        return $this->belongsTo('users');
    }
}